package com.example.testboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author supeng
 */
@SpringBootApplication
@Controller
@RequestMapping("/boot")
public class TestbootApplication {

	public static void main(String[] args) {
		SpringApplication.run(TestbootApplication.class, args);
	}

	@ResponseBody
	@DeleteMapping("/delete")
	public String deleteOps(@RequestBody List<Integer> ids){
		ids.stream().forEach(System.out::println);
		return "hello";
	}

	@RequestMapping("/index")
	public String index(){
		return "index";
	}

}
